package com.example.oasystem.service;

import com.example.oasystem.dao.process.AoaUserProcessDaoOfSun;
import com.example.oasystem.entity.dept.AoaDept;
import com.example.oasystem.entity.position.AoaPosition;
import com.example.oasystem.entity.process.AoaProcessOfSun;
import com.example.oasystem.entity.process.AoaUserProcessOfSun;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AoaUserProcessServiceOfSun {

    List<AoaPosition> selectPosition();

    List<AoaDept> selectDept();
    PageInfo<AoaUserProcessOfSun> selectUsers(int pageNum, int pageSize, String baseKey,long fatherId);
    List<AoaUserProcessOfSun> selectUserProcess(long id,String... userName);

    long selectOneUser(@Param("userName")String userName);

    PageInfo<AoaUserProcessOfSun> selectUserSubordinate(int pageNum, int pageSize,long userId,String baseKey);

}
